﻿/*
 * KLF Headless Browser
 * Written by Kris Oye <kristianoye@gmail.com>
 * Copyright (C) 2011-2012.  All rights reserved.
 */
namespace KLF.Lib.Browser.DOM.HTML
{
    #region Using Statements

    using System;

    #endregion

    /// <summary>
    /// This element is used for single-line text input. See the ISINDEX 
    /// element definition in HTML 4.01. This element is deprecated in 
    /// HTML 4.01.
    /// </summary>
    [Obsolete("The ISINDEX element was referenced in document.", false)]
    public class HTMLIsIndexElement : HTMLFormElementBase
    {
        #region Constructors

        internal HTMLIsIndexElement(Document owner)
            : base(owner, "isindex")
        {
        }

        #endregion

        #region DOM Level 2 HTML Compliance

        /// <summary>
        /// The prompt message. See the prompt attribute definition in 
        /// HTML 4.01. This attribute is deprecated in HTML 4.01.
        /// </summary>
        public string prompt
        {
            get
            {
                return getAttribute(HTMLConstants.HTML_ATT_PROMPT);
            }
            set
            {
                setAttribute(HTMLConstants.HTML_ATT_PROMPT, value);
            }
        }

        #endregion
    }
}
